/*
 * TASK01_Controller.cpp
 *
 *  @date: 2011/12/21
 *  @author: ozaki
 */

#include "TASK01_Controller.h"

TASK01_Controller::TASK01_Controller() {
}

TASK01_Controller::~TASK01_Controller() {
}

Param TASK01_Controller::process(OcciConnection conn, Param params) {

    //    cout << "TASK01::process!" << endl;
    this->getLogger().info(this->getTaskId() + "::process!");

    if (!conn.isValid()) {
        this->getLogger().info("OcciConnection conn is null");
        return params;
    }

    util::DateUtil du;
    Persister p;
    p.save(conn, du.getYYYYMMDDHH24MISS());

    return params;
}

Param TASK01_Controller::avoidProcess(Param params) {
    this->getLogger().info(this->getTaskId() + "::avoidProcess!");
}
